@echo off
rem 设置命令行编码为 UTF-8
chcp 65001

echo 正在激活虚拟环境...

:: 获取当前脚本所在目录
set "current_dir=%~dp0"
set "venv_dir=%current_dir%venv"
set "python_dir=%current_dir%python310"
set "software_dir=%current_dir%software"

:: 使用安装的 Python 创建 venv 虚拟环境
"%python_dir%\python.exe" -m venv "%venv_dir%"

:: 激活虚拟环境
call "%venv_dir%\Scripts\activate.bat"

echo 正在安装第三方包...

:: 安装 requirements.txt 中的依赖
pip install -r "%current_dir%requirements.txt" -i https://mirrors.cloud.tencent.com/pypi/simple --trusted-host mirrors.cloud.tencent.com

echo 正在特殊安装talib包...

:: 离线安装 TA_Lib .whl 文件
pip install "%software_dir%\TA_Lib-0.4.24-cp310-cp310-win_amd64.whl"

rem 保持命令行窗口打开，查看日志输出





